Skip to content

Fix/gr ndsp 125 duplicate keys in data contract details - #159

Merged
stevenhsd merged 3 commits into
release_v010from
fix/gr-ndsp-125-duplicate_keys_in_data_contract_details
Sep 23, 2026
Merged

stevenhsd merged 3 commits into
release_v010from
fix/gr-ndsp-125-duplicate_keys_in_data_contract_details

Conversation

@georgeRobertson

Copy link
Copy Markdown
Contributor

TLDR of changes

Issue with defining different details for columns that have the same name across entities. Changed the structure of the data contract details to specify entity name as the first key and then columns afterwards.

What kind of changes does this PR introduce?

Tick all that apply

  • fix: A bug fix. Correlates with PATCH in SemVer
  • feat: A new feature. Correlates with MINOR in SemVer
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • refactor: A code change that neither fixes a bug nor adds a feature
  • perf: A code change that improves performance
  • test: Adding missing or correcting existing tests
  • build: Changes that affect the build system or external dependencies (example scopes: pip, docker, npm)
  • ci: Changes to CI configuration files and scripts (example scopes: GitLabCI)

Please check if the PR fulfills these requirements

  • I have read and followed the Contributing guidance
  • Docs have been added / updated
  • Tests and Linting in the CI are passing
  • Changes have been reviewed and approved by a Project Maintainer

@georgeRobertson
georgeRobertson changed the base branch from main to release_v010 September 21, 2026 16:52
entity: str,
record: Record,
error: ValidationError,
error_details: Optional[

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't investigated so might be harder than suggesting, but can't you pass the just the entities contract details to the row validator in the get_contract_metadata method?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep good spot - tested this and works with way fewer changes. Will revert the changes in here and apply the new change.

@sonarqubecloud

Copy link
Copy Markdown

@stevenhsd
stevenhsd merged commit 51a9c07 into release_v010 Sep 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants